Imports NamesDataAccess
Imports TaxonNamesInterface

Public Class BrReferences
    Implements TaxonNamesInterface.IReferences


    Public Function GetReference(ByVal referenceId As Guid) As TaxonNamesInterface.Reference Implements TaxonNamesInterface.IReferences.GetReference
        Return ReferenceData.GetReference(referenceId)
    End Function

    Public Function GetReferenceLSIDs(ByVal pageNumber As Integer, ByVal pageSize As Integer) As List(Of String) Implements TaxonNamesInterface.IReferences.GetReferenceLSIDs
        Return ReferenceData.GetReferenceLSIDs(pageNumber, pageSize)
    End Function

    Public Function GetReferenceRISByReference(ByVal refId As Guid) As TaxonNamesInterface.ReferenceRIS Implements TaxonNamesInterface.IReferences.GetReferenceRISByReference
        Return ReferenceData.GetReferenceRISByReference(refId)
    End Function

    Public Function SearchReferences(ByVal searchTxt As String, ByVal maxResults As Integer) As List(Of TaxonNamesInterface.Reference) Implements TaxonNamesInterface.IReferences.SearchReferences
        Return ReferenceData.SearchReferences(searchTxt, maxResults)
    End Function

    Public Sub DeleteReference(ByVal refLsid As String, ByVal newRefLsid As String, ByVal user As String) Implements TaxonNamesInterface.IReferences.DeleteReference
        ReferenceData.DeleteReference(refLsid, newRefLsid, user)
    End Sub
End Class
